﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web_June_10_2021
{
    public partial class Register : System.Web.UI.Page
    {       
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                ViewState["Time"] = DateTime.Now.ToLongTimeString();
            }
           
        }

        protected void Submit_Click(object sender, EventArgs e)
        {
            Time.Text = Convert.ToString(ViewState["Time"]);
            Sure.Text = "请确认您填写的信息：";
            SureName.Text = Name.Text;
            SureAge.Text = Age.Text;
            SureHobby.Text = Hobby.Text;

            
        }

    }
}